home *** CD-ROM | disk | FTP | other *** search
- function loadImage(iName)
- {
- imageLoader.loadClip(content_xml.firstChild.childNodes[2].childNodes[0].childNodes[iName].attributes.preview,loadIntoMe_mc);
- }
- function brandEnabler(loaderName)
- {
- navCA_mc.buttons_mc[loaderName].hitVal = 1;
- navCA_mc.buttons_mc[loaderName].hit_mc.enabled = false;
- btnInfob_mc.hit2_mc.tween("_y",0,0.3,"easeOutQuad");
- btnInfob_mc.name_txt.tween("_y",9,0.3,"easeOutQuad");
- navCA_mc.buttons_mc[prevName].hit_mc.enabled = true;
- navCA_mc.buttons_mc[prevName].hit_mc.colorTo(0,0.3,"easeOutSine");
- navCA_mc.buttons_mc[prevName].name_txt.colorTo(16770048,0.3,"easeOutSine");
- navCA_mc.buttons_mc[prevName].arrow_txt.colorTo(16777215,0.3,"easeOutSine");
- navCA_mc.buttons_mc[prevName].loadBar_mc.tween("_width",0,0.3,"easeInSine");
- prevName = loaderName;
- }
- stop();
- secCount_var = 0;
- nodeCount_var = 2;
- headingSub_txt.text = "CHARACTER ART";
- subEnabler(false,16770048,true,16777215,true,16777215,true,16777215);
- imageCharSub_mc.alphaTo(0,0.3,"easeInQuad",0.6);
- imageCharSub_mc.colorTo(16777215,0.3,"easeInQuad",0.4);
- imageCharMain_mc.alphaTo(0,0.3,"easeInQuad",0.4);
- imageCharMain_mc.colorTo(16777215,0.3,"easeInQuad",0.2);
- imageLogoMain_mc.alphaTo(0,0.3,"easeInQuad",0.2);
- imageLogoMain_mc.colorTo(16777215,0.3,"easeInQuad");
- stop();
- var Bspacing = 1;
- b = 0;
- while(b < imageTotal)
- {
- imageTotal = content_xml.firstChild.childNodes[2].childNodes[0].childNodes.length;
- btnPreview = content_xml.firstChild.childNodes[2].childNodes[0].childNodes[b].attributes.preview;
- btnHiRes = content_xml.firstChild.childNodes[2].childNodes[0].childNodes[b].attributes.hiRes;
- btnName = content_xml.firstChild.childNodes[2].childNodes[0].childNodes[b].firstChild.nodeValue;
- if(b == 0)
- {
- var butName = "button" + b + "_mc";
- navCA_mc.buttons_mc.attachMovie("button",butName,b);
- navCA_mc.buttons_mc[butName]._alpha = 0;
- navCA_mc.buttons_mc[butName].alphaTo(100,0.3,"easeOutSine");
- navCA_mc.buttons_mc[butName].name_txt.html = true;
- navCA_mc.buttons_mc[butName].name_txt.autoSize = "left";
- navCA_mc.buttons_mc[butName].name_txt.wordWrap = true;
- navCA_mc.buttons_mc[butName].name_txt.htmlText = btnName;
- navCA_mc.buttons_mc[butName].HRLink = btnHiRes;
- navCA_mc.buttons_mc[butName].PLink = btnPreview;
- navCA_mc.buttons_mc[butName].PNum = b;
- }
- else
- {
- var butName = "button" + b + "_mc";
- navCA_mc.buttons_mc.attachMovie("button",butName,b);
- navCA_mc.buttons_mc[butName]._alpha = 0;
- navCA_mc.buttons_mc[butName].alphaTo(100,0.3,"easeOutSine");
- var buttonsHeight = Math.round(navCA_mc.buttons_mc._height);
- var y = Bspacing;
- navCA_mc.buttons_mc[butName].name_txt.autoSize = "left";
- navCA_mc.buttons_mc[butName].name_txt.wordWrap = true;
- navCA_mc.buttons_mc[butName].name_txt.html = true;
- navCA_mc.buttons_mc[butName].name_txt.htmlText = btnName;
- navCA_mc.buttons_mc[butName]._y = y + buttonsHeight;
- navCA_mc.buttons_mc[butName].HRLink = btnHiRes;
- navCA_mc.buttons_mc[butName].PLink = btnPreview;
- navCA_mc.buttons_mc[butName].PNum = b;
- }
- if(b == imageTotal - 1)
- {
- if(navCA_mc.buttons_mc._height > 300)
- {
- navCA_mc.gotoAndStop(2);
- }
- }
- b++;
- }
- var imageLoader = new MovieClipLoader();
- var loadHandler = new Object();
- imageLoader.addListener(loadHandler);
- loadHandler.onLoadInit = function(loadIntoMe_mc)
- {
- loadIntoMe_mc.colorTo(null,0.3,"easeOutQuad",0.3);
- navCA_mc.buttons_mc[prevName].loadBar_mc.tween("_width",0,0.3,"easeInSine",1);
- };
- loadHandler.onLoadProgress = function(loadIntoMe_mc, loaded, total)
- {
- percent_loaded = Math.round(loaded / total * 188);
- navCA_mc.buttons_mc[prevName].loadBar_mc._width = percent_loaded;
- };
-